From 53247021f57397358b817bb2112253d2c6b3c45c Mon Sep 17 00:00:00 2001 From: robertl Date: Sat, 18 Jul 2009 20:07:06 +0000 Subject: [PATCH] VPL: use WAYPT_SET. --- gpsbabel/vpl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/vpl.c b/gpsbabel/vpl.c index 12e7372ac..a2cbf0ed1 100644 --- a/gpsbabel/vpl.c +++ b/gpsbabel/vpl.c @@ -154,8 +154,8 @@ vpl_parse_75_sentence(const char *ibuf) waypt->longitude = lon_raw / (double) 0xE1000; waypt->altitude = alt; waypt->sat = sats; - // Speed comes in MPH*16 which we have to convert to m/s - waypt->speed = (speed_raw / (double) 0x10) * 0.44704; + // Speed comes in (MPH x 0x10) which we have to convert to m/s + WAYPT_SET(waypt, speed, (speed_raw / (double) 0x10) * 0.44704); waypt->course = hdg_raw * (double) (360/65535); waypt->creation_time = mkgmtime(&tm); -- 2.30.2